﻿<p>
This example demonstrates the grouping capabilities of Telerik Grid for ASP.NET MVC. 
</p>
<p>
    To enable grouping use the <code>Groupable</code> method. You can also define groups from code:
</p>
<pre class="prettyprint">
&lt;%= Html.Telerik().Grid(Model)
        .Name("Grid")
        .Columns(columns => 
        {
           columns.Bound(c => c.CustomerID).Width(80);
           columns.Bound(c => c.ContactName);
           columns.Bound(c => c.Country).Width(90);
        })
        <em>.Groupable(grouping => grouping.Groups(groups => 
        {
            groups.Add(c => c.Country);
            groups.Add(c => c.ContactName);
        })</em>
%&gt;
</pre>